import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import HelloWorld from '../components/HelloWorld.vue'
import TheWelcome from '../components/TheWelcome.vue'

const routes = [
    {
        path: '/',
        name: '/',
        component: () => import('@/pages/task-board/index.vue'),
    },
    {
		path: '/pinia',
		name: 'pinia',
		component: () => import('@/pages/task-board/index.vue'),
	},
	{
		path: '/vuex',
		name: 'vuex',
		component: HelloWorld,
	},
    { path: '/1', component: HelloWorld },
    { path: '/2', component: TheWelcome },
];

const router = createRouter({
    // history: createWebHashHistory(), // hash 模式
    history: createWebHistory(),
    routes,
});

export default router;
